#include "paintmanager.h"
#include <gui/paintscene.h>

PaintManager::PaintManager(QObject *parent) :
    QObject(parent)
{
    scene = false;
}

void PaintManager::update() {

}

void PaintManager::paintScene(int width, int height, QGLWidget *widget) {
    if (scene) {
        myPaintScene->paint(width, height, widget);
    }
}

void PaintManager::setScene(PaintScene *scene) {
    myPaintScene = scene;
    this->scene = true;
}

PaintScene *PaintManager::getScene() const {
    return myPaintScene;
}
